// 修改该密码
export interface IEditPass {
    oldPassWord: string; // 旧密码
    newPassWord: string; // 新密码
    okPassWord: string; // 确认密码
}
// 修改该密码 默认值
export const defaultEditPass: IEditPass = {
    oldPassWord: "",
    newPassWord: "",
    okPassWord: "",
};

// 修改密码表单校验
export const passRules: any = {
    oldPassWord: [
        { required: true, message: "请输入旧的密码", trigger: "blur" },
    ],
    newPassWord: [
        { required: true, message: "请输入新的密码", trigger: "blur" },
        { min: 6, message: "密码至少6个字符", trigger: "blur" },
    ],
    okPassWord: [
        { required: true, message: "请输入确认密码", trigger: "blur" },
        { min: 6, message: "密码至少6个字符", trigger: "blur" },
    ],
};


// 基本资料 表单校验
export const userInfoRules: any = {
    /* account: [
        { required: true, message: "请输入用户账号", trigger: "blur" },
        { min: 6, message: "用户账号至少6个字符", trigger: "blur" },
    ], */
    nickname: [
        { required: true, message: "请输入用户昵称", trigger: "blur" },
    ],
    username: [
        { required: true, message: "请输入用户名称", trigger: "blur" },
        { min: 2, message: "用户名称至少2个字符", trigger: "blur" },
    ],
    mobile: [
        { required: true, message: "请输入手机号码", trigger: "blur" },
    ],
    email: [
        { required: true, message: "请输入电子邮箱", trigger: "blur" },
    ]
};
